﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true" CodeBehind="Slide.aspx.cs" Inherits="SES.CMS.AdminCP.Slide" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register assembly="DevExpress.Web.v9.2" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dxpc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    function SelectAndClosePopup(value) {
        cbParent.SetValue(value);
        pcParent.Hide();
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
    Cập nhật Slide</h2>
<table class="tablet">
    <tr>
        <td class="style8">
            Tiêu đề(*):
        </td>
        <td class="style9">
            <asp:TextBox ID="txtTitle" runat="server" Width="220px" ValidationGroup="submitGrp"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
                ErrorMessage="*** Cần nhập tiêu đề" ValidationGroup="submitGrp"></asp:RequiredFieldValidator>
            &nbsp; &nbsp; Số thứ tự:
            <asp:TextBox ID="txtOrder" runat="server" Width="50px" Text="0" ValidationGroup="submitGrp"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style8" style="display: none;">
            Hiện ở trang:
        </td>
        <td class="style9" style="display: none;">
            <div style="float: left; vertical-align: middle;">
                <dxe:ASPxComboBox ID="cboParent" ClientEnabled="false" ClientInstanceName="cbParent"
                    runat="server" Height="16px" Width="143px">
                </dxe:ASPxComboBox>
            </div>
            <div style="float: left; margin-left: 5px; vertical-align: middle;">
                <dxe:ASPxButton ID="btnSelectParent" runat="server" Text="Chọn">
                    <ClientSideEvents Click="function(s, e) { pcParent.Show();}" />
                </dxe:ASPxButton>
            </div>
            <div style="float: left;">
                <asp:RadioButton ID="chkHome" GroupName="selecttype" runat="server" Text="Hiện ở trang chủ" />
                <asp:RadioButton ID="chkHappyWedding" GroupName="selecttype" runat="server" Text="Hiện ở CMHP" />
                <asp:RadioButton ID="chkAlbumAnh" GroupName="selecttype" runat="server" Text="Hiện ở Album" />
            </div>
        </td>
    </tr>
    <tr>
        <td class="style8">
            Hình ảnh
        </td>
        <td class="style9">
            <asp:FileUpload ID="fuImage" runat="server" />
            &nbsp;
            <asp:HyperLink ID="hplImage" runat="server" Target="_blank" Visible="False">[Xem 
            ảnh]</asp:HyperLink>
            <p>Slide ảnh phải có kích thước (1280x500)</p>
            </td>
    </tr>
    <tr>
        <td class="style8">
            Đường dẫn:
        </td>
        <td class="style9">
            <asp:TextBox ID="txtSlideURL" runat="server" Width="479px" ValidationGroup="submitGrp" Text="#"></asp:TextBox>
          
        </td>
    </tr>
    <tr style="display:none">
        <td class="style8">
           Kiểu slied:
        </td>
        <td class="style9">
            <asp:RadioButton ID="rdCategory" GroupName="Category"  runat="server" 
                 />Slide có khuyến mãi (Kích thước : 690X440)
            <asp:RadioButton ID="rdoCategory" GroupName="Category" runat="server" 
                 />Slide full, không có khuyến mãi(Kích thước :960X440)
          
        </td>
    </tr>
    <tr>
        <td class="style8">
            Chi tiết:
        </td>
        <td>
            <asp:TextBox ID="txtDescription" TextMode="MultiLine" runat="server" Width="90%">
            </asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style8">
            &nbsp;
        </td>
        <td class="style4">
            <asp:Button ID="btnSave" CssClass="button-gg-green" runat="server" Text="Lưu" OnClick="btnSave_Click" ValidationGroup="submitGrp" />
            <asp:Button ID="btnReset" runat="server" Text="Hủy" CssClass="button-gg-green" 
                onclick="btnReset_Click" />
        </td>
    </tr>
</table>
<dxpc:ASPxPopupControl ID="pcParent" runat="server" ClientInstanceName="pcParent"
    CloseAction="CloseButton" ContentUrl="~/AdminCP/ListCategory.aspx" HeaderText="Chọn danh mục mẹ"
    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Height="336px"
    Width="699px">
    <ContentCollection>
        <dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
        </dxpc:PopupControlContentControl>
    </ContentCollection>
</dxpc:ASPxPopupControl>
</asp:Content>
